/**
 * 
 */
package name.webdizz.gadget.four.envelope.client.util;

import java.util.HashMap;

import name.webdizz.gadget.four.envelope.client.domain.Envelope;
import name.webdizz.gadget.four.envelope.client.domain.ExpenseItem;

/**
 * @author Izzet_Mustafayev
 * 
 */
public class EnvelopeProvider {

	private static final HashMap<String, ExpenseItem> goals = new HashMap<String, ExpenseItem>();

	public static EnvelopeProvider instance() {
		return new EnvelopeProvider();
	}

	public ExpenseItem getGoal(final String goalId) {
		return goals.get(goalId);
	}

	public void addGoal(final ExpenseItem item) {
		goals.put(item.getIdentity().toString(), item);
	}

	public Envelope getEnvelope() {
		return Envelope.instance();
	}
}
